

# 主站配置参数
MASTER_STATION_HOSTNAME = "192.168.31.65"
MASTER_STATION_SSH_PORT = "22"

MASTER_STATION_USERNAME = "hdxt"
MASTER_STATION_PASSWORD = "111111"

MASTER_STATION_SENSOR_DATA_FILE_PATH = "/usr/local/src/second-generation-underground/sensor_data.db"
LOCAL_FILE_PATH = "./"
MASTER_STATION_MAC = "00000000"


# MQTT配置参数
MQTT_BROKER_URL = 'localhost'
MQTT_BROKER_PORT = 1883

MQTT_TOPIC_PUBLISH = f"iot/devices/test/baina/{MASTER_STATION_MAC}/allinone/tx"
MQTT_TOPIC_SUBSCRIBE = f"iot/devices/test/baina/{MASTER_STATION_MAC}/allinone/rx"

MQTT_CLIENT_ID = f"client_{MASTER_STATION_MAC}"

WEB_SOCKET_TOPIC = "iot/devices/test/baina/allinone/ws"


# 发送间隔
SEND_INTERVAL = 2*60 + 15